<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="layui/css/layui.css" media="all">
</head>
<body>
<script type="text/javascript">
    //使用layer弹框模板
    layui.use(['layer'],function(){
        $ = layui.$;
        var layer = layui.layer;
        //根据id获取数据
        $("#name").html(globalData.getCurUName());
        $("#password").click(function(){
            layer.confirm('你确定要退出吗？',{icon:5,title:'退出系统'},function(index){
                layer.close(index);
                //清除数据记录并跳转到指定向页面
                globalData.setUserInfo(null,null,null);
                window.location.href="login.html";
            },function(index){
                //停止运作
                layer.close(index);
            })
        });
    });
</script>
</body>
</html>